<!--
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <title>typeList</title>
    <link rel="stylesheet" th:href="@{/css/bootstrap.min.css}" crossorigin="anonymous">
</head>
<body class="container">
<br/>
<h1>文章列表 <a th:href="@{/}">返回</a></h1>
<br/><br/>
<div class="row">
    <div class="col-sm-4 control-label" >
        <a href="/toAdd" th:href="@{/article/toAdd}" class="btn btn-info">新增</a>
    </div>  
    <div class="col-sm-4 " > </div>
    <div class="col-sm-4 " >  
        <a href="/article/page?pageIndex=0" th:href="@{/article/page?pageIndex=0}" class="btn btn-info">首页</a>
        <a href="/article/page?pageIndex=0" th:href="@{/article/page(pageIndex=${pre})}" class="btn btn-info">上页</a>
        <a href="/article/page?pageIndex=0" th:href="@{/article/page(pageIndex=${next})}" class="btn btn-info">下页</a>
        <a href="/article/page?pageIndex=0" th:href="@{/article/page(pageIndex=${page.getTotalPages()-1})}" class="btn btn-info">末页</a>
    </div> 
</div>
<div class="with:80%">
    <table class="table table-hover">
        <thead>
        <tr>
            <th>编号</th>
            <th>文章标题</th>
            <th>文章类型</th>
            <th>发布时间</th>
            <th>发布人</th>
            <th>Edit</th>
            <th>Delete</th>
        </tr>
        </thead>
        <tbody>
        <tr  th:each="article,articleStat : ${page.getContent()}">
            <th scope="row" th:text="${articleStat.index + 1}">1</th>
            <td><a th:href="@{/article/show(id=${article.id})}" th:text="${article.title}">neo</a></td>
            <td th:text="${article.articletype.type}">neo</td>
            <td th:text="${#dates.format(article.pubDate,'yyyy/MM/dd')}">Otto</td>
            <td th:text="${article.user.username}">6</td>
            <td><a th:href="@{/article/toEdit(id=${article.id})}">edit</a></td>
            <td><a th:href="@{/article/delete(id=${article.id})}">delete</a></td>
        </tr>
        </tbody>
    </table>
</div>
<div class="row">
    <div class="col-sm-8 " > </div>
    <div class="col-sm-4 " >  
        <a href="/article/page?pageIndex=0" th:href="@{/article/page?pageIndex=0}" class="btn btn-info">首页</a>
        <a href="/article/page?pageIndex=0" th:href="@{/article/page(pageIndex=${pre})}" class="btn btn-info">上页</a>
        <a href="/article/page?pageIndex=0" th:href="@{/article/page(pageIndex=${next})}" class="btn btn-info">下页</a>
        <a href="/article/page?pageIndex=0" th:href="@{/article/page(pageIndex=${page.getTotalPages()-1})}" class="btn btn-info">末页</a>
    </div>
</div>
</body>
</html>

-->
<!--<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <title>typeList</title>
    <link rel="stylesheet" th:href="@{/css/bootstrap.min.css}" crossorigin="anonymous">
    <style>
        body {
            background-color: #f0f2f5;
            font-family: 'Arial', sans-serif;
            color: #333;
        }
        .container {
            margin-top: 30px;
            background-color: #fff;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
        }
        h1 {
            color: #4a90e2;
            font-weight: bold;
        }
        .btn-info {
            background-color: #4a90e2;
            border-color: #4a90e2;
        }
        .btn-info:hover {
            background-color: #357abd;
            border-color: #357abd;
        }
        table {
            margin-top: 20px;
            border-collapse: collapse;
            width: 100%;
            background-color: #fdfdfd;
        }
        thead {
            background-color: #4a90e2;
            color: #fff;
        }
        th, td {
            text-align: center;
            padding: 12px;
            border: 1px solid #ddd;
        }
        th {
            font-weight: bold;
        }
        td a {
            color: #4a90e2;
            text-decoration: none;
        }
        td a:hover {
            text-decoration: underline;
        }
        tbody tr:nth-child(even) {
            background-color: #f2f2f2;
        }
        tbody tr:hover {
            background-color: #e6f7ff;
        }
    </style>
</head>
<body class="container">
<br/>
<h1>文章列表 <a th:href="@{/}">返回</a></h1>
<br/><br/>
<div class="row">
    <div class="col-sm-4 control-label" >
        <a href="/toAdd" th:href="@{/article/toAdd}" class="btn btn-info">新增</a>
    </div>
    <div class="col-sm-4 " > </div>
    <div class="col-sm-4 " >
        <a href="/article/page?pageIndex=0" th:href="@{/article/page?pageIndex=0}" class="btn btn-info">首页</a>
        <a href="/article/page?pageIndex=0" th:href="@{/article/page(pageIndex=${pre})}" class="btn btn-info">上页</a>
        <a href="/article/page?pageIndex=0" th:href="@{/article/page(pageIndex=${next})}" class="btn btn-info">下页</a>
        <a href="/article/page?pageIndex=0" th:href="@{/article/page(pageIndex=${page.getTotalPages()-1})}" class="btn btn-info">末页</a>
    </div>
</div>
<div class="with:80%">
    <table class="table table-hover">
        <thead>
        <tr>
            <th>编号</th>
            <th>文章标题</th>
            <th>文章类型</th>
            <th>发布时间</th>
            <th>发布人</th>
            <th>编辑</th>
            <th>删除</th>
        </tr>
        </thead>
        <tbody>
        <tr th:each="article,articleStat : ${page.getContent()}">
            <th scope="row" th:text="${articleStat.index + 1}">1</th>
            <td><a th:href="@{/article/show(id=${article.id})}" th:text="${article.title}">neo</a></td>
            <td th:text="${article.articletype.type}">neo</td>
            <td th:text="${#dates.format(article.pubDate,'yyyy/MM/dd')}">Otto</td>
            <td th:text="${article.user.username}">6</td>
            <td><a th:href="@{/article/toEdit(id=${article.id})}">edit</a></td>
            <td><a th:href="@{/article/delete(id=${article.id})}">delete</a></td>
        </tr>
        </tbody>
    </table>
</div>
<div class="row">
    <div class="col-sm-8 " > </div>
    <div class="col-sm-4 " >
        <a href="/article/page?pageIndex=0" th:href="@{/article/page?pageIndex=0}" class="btn btn-info">首页</a>
        <a href="/article/page?pageIndex=0" th:href="@{/article/page(pageIndex=${pre})}" class="btn btn-info">上页</a>
        <a href="/article/page?pageIndex=0" th:href="@{/article/page(pageIndex=${next})}" class="btn btn-info">下页</a>
        <a href="/article/page?pageIndex=0" th:href="@{/article/page(pageIndex=${page.getTotalPages()-1})}" class="btn btn-info">末页</a>
    </div>
</div>
</body>
</html>-->
<!--<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <title>文章列表</title>
    <link rel="stylesheet" th:href="@{/css/bootstrap.min.css}" crossorigin="anonymous">
    <style>
        body {
            background-color: #f0f2f5;
            font-family: 'Arial', sans-serif;
            color: #333;
        }
        .container {
            margin-top: 30px;
            background-color: #fff;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
        }
        h1 {
            color: #4a90e2;
            font-weight: bold;
        }
        .btn-info {
            background-color: #003;
            border-color: #4a90e2;
        }
        .btn-info:hover {
            background-color: #003;
            border-color: #357abd;
        }
        .btn-link {
            color: #4a90e2;
            text-decoration: none;
        }
        .btn-link:hover {
            text-decoration: underline;
        }
        .btn-link.text-danger {
            color: #dc3545;
        }
        .btn-link.text-danger:hover {
            color: #c82333;
        }
        .pagination-buttons a {
            margin-right: 5px; /* 增加分页按钮之间的间距 */
        }
        .table-responsive {
            margin-top: 20px; /* 增加表格与其他元素之间的间距 */
        }
        .table-actions {
            margin-top: 20px; /* 增加表格操作按钮与表格之间的间距 */
        }
        table {
            margin-top: 20px;
            border-collapse: collapse;
            width: 100%;
            background-color: #fdfdfd;
        }
        thead {
            background-color: #4a90e2;
            color: #fff;
        }
        th, td {
            text-align: center;
            padding: 12px;
            border: 1px solid #ddd;
        }
        th {
            font-weight: bold;
        }
        td a {
            color: #4a90e2;
            text-decoration: none;
        }
        td a:hover {
            text-decoration: underline;
        }
        tbody tr:nth-child(even) {
            background-color: #f2f2f2;
        }
        tbody tr:hover {
            background-color: #e6f7ff;
        }
    </style>
</head>
<body class="container">
<br/>
<h1>文章列表 <a th:href="@{/}" class="btn btn-link">返回</a></h1>
<br/><br/>
<div class="row">
    <div class="col-sm-4 control-label">
        <a href="/toAdd" th:href="@{/article/toAdd}" class="btn btn-info">新增</a>
    </div>
    <div class="col-sm-4"></div>
    <div class="col-sm-4">
        <a href="/article/page?pageIndex=0" th:href="@{/article/page?pageIndex=0}" class="btn btn-info">首页</a>
        <a href="/article/page?pageIndex=0" th:href="@{/article/page(pageIndex=${pre})}" class="btn btn-info">上页</a>
        <a href="/article/page?pageIndex=0" th:href="@{/article/page(pageIndex=${next})}" class="btn btn-info">下页</a>
        <a href="/article/page?pageIndex=0" th:href="@{/article/page(pageIndex=${page.getTotalPages()-1})}" class="btn btn-info">末页</a>
    </div>
</div>
<div class="with:80%">
    <table class="table table-hover">
        <thead>
        <tr>
            <th>编号</th>
            <th>文章标题</th>
            <th>文章类型</th>
            <th>发布时间</th>
            <th>发布人</th>
            <th>编辑</th>
            <th>删除</th>
        </tr>
        </thead>
        <tbody>
        <tr th:each="article, articleStat : ${page.getContent()}">
            <th scope="row" th:text="${articleStat.index + 1}">1</th>
            <td><a th:href="@{/article/show(id=${article.id})}" th:text="${article.title}">neo</a></td>
            <td th:text="${article.articletype.type}">neo</td>
            <td th:text="${#dates.format(article.pubDate,'yyyy/MM/dd')}">Otto</td>
            <td th:text="${article.user.username}">6</td>
            <td><a th:href="@{/article/toEdit(id=${article.id})}" class="btn btn-link">编辑</a></td>
            <td><a th:href="@{/article/delete(id=${article.id})}" class="btn btn-link text-danger">删除</a></td>
        </tr>
        </tbody>
    </table>
</div>
<div class="row">
    <div class="col-sm-8"></div>
    <div class="col-sm-4">
        <a href="/article/page?pageIndex=0" th:href="@{/article/page?pageIndex=0}" class="btn btn-info">首页</a>
        <a href="/article/page?pageIndex=0" th:href="@{/article/page(pageIndex=${pre})}" class="btn btn-info">上页</a>
        <a href="/article/page?pageIndex=0" th:href="@{/article/page(pageIndex=${next})}" class="btn btn-info">下页</a>
        <a href="/article/page?pageIndex=0" th:href="@{/article/page(pageIndex=${page.getTotalPages()-1})}" class="btn btn-info">末页</a>
    </div>
</div>
</body>
</html>-->
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <title>文章列表</title>
    <link rel="stylesheet" th:href="@{/css/bootstrap.min.css}" crossorigin="anonymous">
    <style>
        body {
            background: url('/img/background.jpg') no-repeat center center fixed;
            background-size: cover;
            background-color: #e9ecef;
            font-family: 'Arial', sans-serif;
            color: #333;
        }
        .container {
            margin-top: 30px;
            background-color: #ffffff;
            padding: 30px;
            border-radius: 10px;
            box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
        }
        h1 {
            color: #ff5733; /* 橙色标题 */
            font-weight: bold;
        }
        .btn-primary, .btn-secondary, .btn-info {
            transition: all 0.3s ease;
        }
        .btn-primary {
            background-color: #28a745; /* 绿色 */
            border-color: #28a745;
            color: #fff;
        }
        .btn-primary:hover {
            background-color: #218838;
            border-color: #218838;
            color: #fff;
        }
        .btn-secondary {
            background-color: #ffc107; /* 黄色 */
            border-color: #ffc107;
            color: #333;
        }
        .btn-secondary:hover {
            background-color: #e0a800;
            border-color: #e0a800;
            color: #333;
        }
        .btn-info {
            background-color: #007bff; /* 蓝色 */
            border-color: #007bff;
            color: #fff;
        }
        .btn-info:hover {
            background-color: #0056b3;
            border-color: #0056b3;
            color: #fff;
        }
        .btn-link {
            color: #17a2b8; /* 青色 */
            text-decoration: none;
            transition: color 0.3s ease;
        }
        .btn-link:hover {
            color: #138496;
            text-decoration: underline;
        }
        .btn-link.text-danger {
            color: #dc3545;
        }
        .btn-link.text-danger:hover {
            color: #c82333;
        }
        .pagination-buttons a {
            margin-right: 5px;
        }
        .table-responsive {
            margin-top: 20px;
        }
        table {
            margin-top: 20px;
            border-collapse: collapse;
            width: 100%;
            background-color: #ffffff;
        }
        thead {
            background-color: #6c757d; /* 深灰色 */
            color: #ffffff;
        }
        th, td {
            text-align: center;
            padding: 12px;
            border: 1px solid #ddd;
            transition: background-color 0.3s ease;
        }
        th {
            font-weight: bold;
        }
        td a {
            color: #007bff;
            text-decoration: none;
        }
        td a:hover {
            text-decoration: underline;
        }
        tbody tr:nth-child(even) {
            background-color: #f2f2f2;
        }
        tbody tr:hover {
            background-color: #e6f7ff;
        }
    </style>
</head>
<body class="container">
<br/>
<h1>文章列表 <a th:href="@{/}" class="btn btn-link">返回</a></h1>
<br/><br/>
<div class="row">
    <div class="col-sm-4 control-label">
        <a href="/toAdd" th:href="@{/article/toAdd}" class="btn btn-primary">新增</a>
    </div>
    <div class="col-sm-4"></div>
    <div class="col-sm-4">
        <a href="/article/page?pageIndex=0" th:href="@{/article/page?pageIndex=0}" class="btn btn-secondary btn-sm custom-btn mr-2">首页</a>
        <a href="/article/page?pageIndex=0" th:href="@{/article/page(pageIndex=${pre})}" class="btn btn-secondary btn-sm custom-btn mr-2">上页</a>
        <a href="/article/page?pageIndex=0" th:href="@{/article/page(pageIndex=${next})}" class="btn btn-secondary btn-sm custom-btn mr-2">下页</a>
        <a href="/article/page?pageIndex=0" th:href="@{/article/page(pageIndex=${page.getTotalPages()-1})}" class="btn-secondary btn-sm custom-btn">末页</a>
    </div>
</div>
<div class="table-responsive">
    <table class="table table-hover">
        <thead>
        <tr>
            <th>编号</th>
            <th>文章标题</th>
            <th>文章类型</th>
            <th>发布时间</th>
            <th>发布人</th>
            <th>编辑</th>
            <th>删除</th>
        </tr>
        </thead>
        <tbody>
        <tr th:each="article, articleStat : ${page.getContent()}">
            <th scope="row" th:text="${articleStat.index + 1}">1</th>
            <td><a th:href="@{/article/show(id=${article.id})}" th:text="${article.title}">neo</a></td>
            <td th:text="${article.articletype.type}">neo</td>
            <td th:text="${#dates.format(article.pubDate,'yyyy/MM/dd')}">Otto</td>
            <td th:text="${article.user.username}">6</td>
            <td><a th:href="@{/article/toEdit(id=${article.id})}" class="btn btn-link">编辑</a></td>
            <td><a th:href="@{/article/delete(id=${article.id})}" class="btn btn-link text-danger">删除</a></td>
        </tr>
        </tbody>
    </table>
</div>
<div class="row">
    <div class="col-sm-8"></div>
    <div class="col-sm-4">
        <a href="/article/page?pageIndex=0" th:href="@{/article/page?pageIndex=0}" class="btn btn-secondary btn-sm custom-btn mr-2">首页</a>
        <a href="/article/page?pageIndex=0" th:href="@{/article/page(pageIndex=${pre})}" class="btn-secondary btn-sm custom-btn mr-2">上页</a>
        <a href="/article/page?pageIndex=0" th:href="@{/article/page(pageIndex=${next})}" class="btn-secondary btn-sm custom-btn mr-2">下页</a>
        <a href="/article/page?pageIndex=0" th:href="@{/article/page(pageIndex=${page.getTotalPages()-1})}" class="btn-secondary btn-sm custom-btn">末页</a>
    </div>
</div>
</body>
</html>




